package com.example.poemtest.entity;

import java.io.Serializable;
import java.util.List;

/**
 * 朝代诗词的实体类
 * created by JHT on 2024/5/9
 */
public class DynastryPoetryBean implements Serializable {
    private int code;
    private String msg;
    private List<DynastryPoetryBean.DynastyPoetry> data;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public List<DynastyPoetry> getData() {
        return data;
    }

    public void setData(List<DynastyPoetry> data) {
        this.data = data;
    }

    public static class DynastyPoetry implements Serializable {
        private int id;
        private String dynasty;
        private String title;
        private String autuor;
        private String content;
        private String tag;
        private String translation;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getDynasty() {
            return dynasty;
        }

        public void setDynasty(String dynasty) {
            this.dynasty = dynasty;
        }

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getAutuor() {
            return autuor;
        }

        public void setAutuor(String autuor) {
            this.autuor = autuor;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getTag() {
            return tag;
        }

        public void setTag(String tag) {
            this.tag = tag;
        }

        public String getTranslation() {
            return translation;
        }

        public void setTranslation(String translation) {
            this.translation = translation;
        }

        @Override
        public String toString() {
            return "DynastyPoetry{" +
                    "id=" + id +
                    ", dynasty='" + dynasty + '\'' +
                    ", title='" + title + '\'' +
                    ", autuor='" + autuor + '\'' +
                    ", content='" + content + '\'' +
                    ", tag='" + tag + '\'' +
                    ", translation='" + translation + '\'' +
                    '}';
        }
    }
}
